<template>
  <div class="product_card">
    <!-- 产品图 -->
    <div class="product_img">
      <img :src="data.src" alt="">
    </div>

    <!-- 产品名称 -->
    <div class="product_name">
      {{this.data.name}}
    </div>

    <!-- 产品价格 -->
    <div class="product_price">
      {{data.price}}
    </div>
  </div>
</template>
<script>
export default {
    props:['data'], 
    mounted(){
      console.log('data',this.data)
    }
};
</script>
<style scoped>
.product_card{
    background: white;
    height: 100%;
    padding: 1em;
}
.product_img{
    margin: 0 auto;
}
.product_name{
  text-align: center;
  font-weight: bold;
}
.product_price{
  text-align: center;
  color: #FF0000;
}
</style>